package newHomework;

public class Next02 {
    public static void main(String[] args) {
        //判断最优选择
        double price1 =one();
        double price2 =two();

        if (price1<price2){
            System.out.println("满减打折更优惠价格是"+price1+"元");

        }else {
            System.out.println("鱼香肉丝优惠价格更实惠，一共价格是"+price2+"元");
        }
    }
    public static double one(){
        double price=(24+8+3)*0.8;
        return price;
    }

    public  static double two(){
        double price=(16+8+3);
        return price;
    }
}
